package com.tutor.lzm.utils;

/**
 * Created by Admin on 2017/10/23.
 */

public class StringTools {

    /**
     * 把字符里的@符号换成换行符
     *
     * @return String
     * @throws
     * @since 1.0.0
     */
    public static String charRepalce(String str) {

        String[] sarray = str.split("@");
        int len = sarray.length;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i <= len - 1; i++) {
            sb.append(sarray[i]);
            sb.append("\n");
        }
        return sb.toString();
    }
}
